library(here)
here() starts at /Users/emilyjaco/codeclan_health_dashboard
scotland <- read_sf(here("../data_raw/SG_NHS_HealthBoards_2019/SG_NHS_HealthBoards_2019.shp"))
Error: Cannot open "/Users/emilyjaco/codeclan_health_dashboard/../data_raw/SG_NHS_HealthBoards_2019/SG_NHS_HealthBoards_2019.shp"; The file doesn't seem to exist.
class(scotland)
[1] "sf" "tbl_df" "tbl" "data.frame"
head(scotland, 14)
Simple feature collection with 14 features and 4 fields
Geometry type: MULTIPOLYGON
Dimension: XY
Bounding box: xmin: 5512.998 ymin: 530250.8 xmax: 470332 ymax: 1220302
Projected CRS: OSGB 1936 / British National Grid